<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="application">
    <h1>复选框</h1>
    <input type="checkbox" value="足球" v-model="checkList">足球
    <input type="checkbox" value="篮球" v-model="checkList">篮球
    <input type="checkbox" value="排球" v-model="checkList">排球
    <p>{{checkList}}</p>
    <h1>单选框</h1>
    <input type="radio" value="男" v-model="set">男
    <input type="radio" value="女" v-model="set">女
    <p>{{set}}</p>
  </div>
  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
  <script>
    const App = {
      data() {
        return {
          checkList: [],
          set: ''
        }
      }
    }
    Vue.createApp(App).mount('#application')
  </script>
</body>
</html>